home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds / lockdir.man < prev    next >
Text File  |  1990-03-01  |  1KB  |  34 lines

  1. '\" Copyright 1990 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/cmds/lockdir/RCS/lockdir.man,v 1.1 90/02/28 21:25:22 douglis Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS lockdir cmds
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. lockdir \- Lock a directory atomically
  17. .SH SYNOPSIS
  18. \fBlockdir\fR [\fIfilename\fR]
  19. .SH OPTIONS
  20. .IP "\fIfilename\fR" 15
  21. Name of file to use for the lock (defaults to \fB./LOCK\fP).
  22. .BE
  23.  
  24. .SH DESCRIPTION
  25. .PP
  26. This is a simple program to acquire a lock on a directory. It waits
  27. for
  28. up to 10 minutes before giving up.  It exits 0 if the lock was
  29. acquired and non-zero otherwise.  If no argument is given, it assumes
  30. it is in the proper directory and just uses the file \fBLOCK\fB in the
  31. current directory.  
  32. .SH KEYWORDS
  33. lock, atomic, 
  34.